﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ParticeInClass
{
    public class User
    {
        private String name;
        private String password;
        private User invitedBy;
        private int bmoney;
        
        public String GetName()
        {
            return name;
        }

        public void SetName(String name)
        {
            this.name = name;
        }
      

        public void SetPassword(String password)
        {
            this.password = password;
        }

        public User GetInvitedBy()
        {
            return invitedBy;
        }

        public void SetInvitedBy(User invitedBy)
        {
            this.invitedBy = invitedBy;
        }

        public int GetBmoney()
        {
            return bmoney;
        }

        public void SetBmoney(int bmoney)
        {
            this.bmoney = bmoney;
        }
        public void Register()
        {
            Console.WriteLine(name + "开始注册，" + "密码：" + password + "邀请人" + invitedBy);
        }

        public void Login()
        {
            Console.WriteLine(name + "开始登录，" + "输入密码：" + password);
        }
    }
}
